//
//  FrankCartoonData.m
//  IMYWebView
//
//  Created by Gollum on 16/09/24
//  Copyright (c) IMY. All rights reserved.
//

#import "FrankCartoonData.h"
#import "FrankCartoonDetailData.h"

@implementation FrankCartoonData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [FrankCartoonDetailData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray <FrankCartoonDetailData *>*dataArray = [NSMutableArray array];
    NSArray *array = value;
    if ([key isEqualToString:@"data"]) {
        
        for (NSDictionary *dic in array) {
            FrankCartoonDetailData *data = [FrankCartoonDetailData modelWithDic:dic];
            [dataArray addObject:data];
        }
        _data = dataArray;
    }
    
}

@end
